// @APIVersion 1.0.0
// @Title beego Test API
// @Description beego has a very cool tools to autogenerate documents for your API
// @Contact astaxie@gmail.com
// @TermsOfServiceUrl http://beego.me/
// @License Apache 2.0
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
package routers

import (
	"smart_home/api/controllers"

	"github.com/astaxie/beego"
)

func init() {
	ns := beego.NewNamespace("/v2",
		beego.NSNamespace("/object",
			beego.NSInclude(
				&controllers.ObjectController{},
			),
		),
		beego.NSNamespace("/user",
			beego.NSInclude(
				&controllers.UserController{},
			),
		),
		beego.NSNamespace("/equipment",
			beego.NSInclude(
				&controllers.EquipmentController{},
			),
		),
		beego.NSNamespace("/family",
			beego.NSInclude(
				&controllers.FamilyController{},
			),
		),
		beego.NSNamespace("/scene",
			beego.NSInclude(
				&controllers.SceneController{},
			),
		),
		beego.NSNamespace("/messages",
			beego.NSInclude(
				&controllers.MessageController{},
			),
		),
		beego.NSNamespace("/switch",
			beego.NSInclude(
				&controllers.SwitchController{},
			),
		),
		beego.NSNamespace("/upload",
			beego.NSInclude(
				&controllers.UploadController{},
			),
		),
		beego.NSNamespace("/mqtt",
			beego.NSInclude(
				&controllers.MqttController{},
			),
		),
		beego.NSNamespace("/delay",
			beego.NSInclude(
				&controllers.DelayController{},
			),
		),
		beego.NSNamespace("/timing",
			beego.NSInclude(
				&controllers.TimingController{},
			),
		),
		beego.NSNamespace("/notepad",
			beego.NSInclude(
				&controllers.NotepadController{},
			),
		),
		beego.NSNamespace("/trip",
			beego.NSInclude(
				&controllers.TripController{},
			),
		),
		beego.NSNamespace("/use_mode",
			beego.NSInclude(
				&controllers.UseModeController{},
			),
		),
		beego.NSNamespace("/xfyun",
			beego.NSInclude(
				&controllers.XfyunController{},
			),
			beego.NSInclude(
				&controllers.XfyunAfterController{},
			),
		),
		beego.NSNamespace("/bot",
			beego.NSInclude(
				&controllers.BotController{},
			),
		),
		beego.NSInclude(
			&controllers.DefaultController{},
		),
	)
	beego.AddNamespace(ns)
}
